package com.peter.demo.annotations.configures.componentscan;


import com.peter.project.controller.MyController;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;

/**
 * FilterType.ASSIGNABLE_TYPE 可以指明直接扫描哪些类
 */
@Configuration
@ComponentScan(value = "com.peter.project",
//        includeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,value = {MyController.class})},
        includeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM,value = {XDTypeFilter.class})},
        useDefaultFilters = false
)
public class MyConfig {
}
